<?php

namespace Yo\ToolBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Yo\ToolBundle\Entity\Like
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Yo\ToolBundle\Entity\LikeRepository")
 */
class Like {
/*******************************************************************************
* Begin of user's definitions
*******************************************************************************/
    /**
    * @ORM\prePersist
    */
    public function setDefaultValues() {
		$now = new \DateTime();

        if (!isset($this->createdAt)) $this->createdAt = $now;

        $this->updatedAt = $now;
    }
	
/*******************************************************************************
* End of user's definitions
*******************************************************************************/
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var bigint $fromId
     *
     * @ORM\Column(name="fromId", type="bigint")
     */
    private $fromId;

    /**
     * @var bigint $toId
     *
     * @ORM\Column(name="toId", type="bigint")
     */
    private $toId;

    /**
     * @var boolean $type
     *
     * @ORM\Column(name="type", type="boolean")
     */
    private $type;

    /**
     * @var string $description
     *
     * @ORM\Column(name="description", type="string", length=255)
     */
    private $description;

    /**
     * @var datetime $createdAt
     *
     * @ORM\Column(name="createdAt", type="datetime")
     */
    private $createdAt;

    /**
     * @var datetime $updatedAt
     *
     * @ORM\Column(name="updatedAt", type="datetime")
     */
    private $updatedAt;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set fromId
     *
     * @param bigint $fromId
     */
    public function setFromId($fromId)
    {
        $this->fromId = $fromId;
    }

    /**
     * Get fromId
     *
     * @return bigint 
     */
    public function getFromId()
    {
        return $this->fromId;
    }

    /**
     * Set toId
     *
     * @param bigint $toId
     */
    public function setToId($toId)
    {
        $this->toId = $toId;
    }

    /**
     * Get toId
     *
     * @return bigint 
     */
    public function getToId()
    {
        return $this->toId;
    }

    /**
     * Set type
     *
     * @param boolean $type
     */
    public function setType($type)
    {
        $this->type = $type;
    }

    /**
     * Get type
     *
     * @return boolean 
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Set description
     *
     * @param string $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * Get description
     *
     * @return string 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set createdAt
     *
     * @param datetime $createdAt
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;
    }

    /**
     * Get createdAt
     *
     * @return datetime 
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * Set updatedAt
     *
     * @param datetime $updatedAt
     */
    public function setUpdatedAt($updatedAt)
    {
        $this->updatedAt = $updatedAt;
    }

    /**
     * Get updatedAt
     *
     * @return datetime 
     */
    public function getUpdatedAt()
    {
        return $this->updatedAt;
    }
}